package com.asset.dispoal.interestFormula.domain.service.converter;

import com.asset.dispoal.interestFormula.domain.db.entity.InterestFormula;
import com.asset.dispoal.interestFormula.dto.InterestFormulaRequest;
import com.asset.dispoal.interestFormula.dto.InterestFormulaResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/3/28$
 */
@Mapper
public interface InterestFormulaConverter {

    InterestFormulaConverter INSTANCE = Mappers.getMapper(InterestFormulaConverter.class);

    InterestFormula reqToDo(InterestFormulaRequest request);


    List<InterestFormulaResponse> dosToRes(List<InterestFormula> interestFormulas);


}
